package com.example.homeworl;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import java.util.Calendar;

public class ResultActivity extends AppCompatActivity {

    private static final String TAG ="xr";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result);
        Intent intent=getIntent();
        intent.putExtra("data","今天是10月21日，天气是小雨。"+
                "现在的时间是: "+ Calendar.getInstance().getTime());
        setResult(888,intent);
        finish();
    }
}